"use strict";!function(s){s.fn.simplebox=function(e){var d=s.extend({fadeSpeed:400,darkMode:!1},e),a=s("body"),o=s('<div id="overlay"></div>'),c=s('<div class="cross"></div>'),n=s("<img class='slb'>"),i=d.fadeSpeed,r=!1;d.darkMode?(o.css("background-color","rgba(0, 0, 0, 0.7)"),c.addClass("cross--dark"),s(".slb").addClass("slb--invert"),n.addClass("slb--invert")):(o.css("background-color","white"),c.addClass("cross--light"));var t=function(){o.fadeOut(i),n.removeClass("slb--opened"),r=!1,a.css("overflow","auto")};return o.click(t),c.click(t),s(document).keyup(function(s){27==s.keyCode&&r&&t()}),this.each(function(){o.append(c);var e=s(this);e.click(function(){r=!0,a.css("overflow","hidden");var e=s(this),d=e.attr("src");n.attr("src",d),n.css("max-height","80%"),n.addClass("pop-in"),n.removeClass("pop-out"),n.addClass("center"),n.addClass("slb--opened"),o.css("pointer-events","initial"),o.append(n),a.append(o),o.fadeIn(i)})})}}(jQuery);